<div id="content">
	<div class="clear">
		<div id="leftCol">
			<div id="leftCol-padding">
				<?
				$this->loadView("ericdingle/view/blogNav.php", array(
					"labels" => $labels,
					"links" => $links
				));
				?>
			</div>
		</div>
		<div id="rightCol">
			<div id="rightCol-padding">
				<?
				$this->loadView("ericdingle/view/post.php", array(
					"isLoggedIn" => $isLoggedIn,
					"post" => $post,
					"labels" => $labels
				));
				?>
				<a name="comments"></a>
				<? foreach ($comments as $comment) { ?>
				<div class="comment">
					<hr/>
					<div>On <?=$comment->getDate()->toStr()?>, <?=$comment->getName()?> wrote:</div>
					<div><?=$comment->getContent()?></div>
					<? if ($isLoggedIn) { ?>
					<div>
						<form action="" method="post">
							<input type="hidden" name="commentID" value="<?=$comment->getCommentID()?>"/>
							<input type="submit" name="deleteComment" value="Delete"/>
						</form>
					</div>
					<? } ?>
				</div>
				<? } ?>
				<hr/>
				<a name="commentForm"></a>
				<form action="" method="post" id="commentForm">
					<input type="hidden" name="postID" value="<?=$post->getPostID()?>"/>
					<input type="hidden" id="jsValid" name="jsValid" value="false"/>
					<table>
						<tr>
							<td>Name:</td>
							<td><input type="text" id="commentName" name="commentName" maxlength="32"/></td>
						</tr>
						<tr>
							<td>Comment:</td>
							<td><textarea id="commentContent" name="commentContent" cols="60" rows="4"></textarea></td>
						</tr>
						<tr>
							<td></td>
							<td><input type="submit" name="postComment" value="Post Comment"/>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
</div>
